package router

import (
	"api/handler/api"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {
	v1 := r.Group("v1")
	{
		user := v1.Group("user")
		{
			user.POST("userList", api.UserList)
		}
		video := v1.Group("video")
		{
			video.POST("videoAdd", api.VideoAdd)
			video.POST("videoList", api.VideoList)
		}
	}
}
